package com.hdsx.restful.mapquery.total.rest;

import java.util.List;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Service;

import com.hdsx.restful.mapquery.total.bean.Distcode;
import com.hdsx.restful.mapquery.total.bean.Statistics;
import com.hdsx.restful.mapquery.total.service.StatisticsService;
@Path("/statistics")
@Service
public class StatisticsRestServer {
	@Resource(name="statisticsServiceImpl")
	private StatisticsService statisticsService;
	@GET
	@Path("/queryCountByCDLX")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Statistics> queryCountByCDLX(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryCountByCDLX(lxdm);
	}
	@GET
	@Path("/queryCountByJSDJ")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Statistics> queryCountByJSDJ(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryCountByJSDJ(lxdm);
	}
	@GET
	@Path("/queryCountByLMLX")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Statistics> queryCountByLMLX(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryCountByLMLX(lxdm);
	}
	@GET
	@Path("/queryCountByQLFL")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Statistics> queryCountByQLFL(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryCountByQLFL(lxdm);
	}
	@GET
	@Path("/queryCountByPDDJ")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Statistics> queryCountByPDDJ(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryCountByPDDJ(lxdm);
	}
	@GET
	@Path("/queryDiscodeByLXBM")
	@Produces(MediaType.APPLICATION_JSON)
	public List<Distcode> queryDiscodeByLXBM(@QueryParam("lxdm") String lxdm)
	{
		return statisticsService.queryDiscodeByLXBM(lxdm);
	}
}
